home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Meters / rtmeterx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-29  |  6.1 KB  |  180 lines

  1. #if !defined(AFX_RTMETERX_H__6182BB37_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  2. #define AFX_RTMETERX_H__6182BB37_8033_11D1_A956_00C0F6A06F60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CRTMETERX wrapper class
  14.  
  15. class CRTMETERX : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CRTMETERX)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x1ba6e86, 0xdc1a, 0x11d0, { 0xa9, 0x56, 0x0, 0xc0, 0xf6, 0xa0, 0x6f, 0x60 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     long GetWindowBackgroundColor();
  43.     void SetWindowBackgroundColor(long);
  44.     long GetWindowBorderColor();
  45.     void SetWindowBorderColor(long);
  46.     long GetPlotBackgroundColor();
  47.     void SetPlotBackgroundColor(long);
  48.     long GetWindowBorderStyle();
  49.     void SetWindowBorderStyle(long);
  50.     long GetWindowResizeMode();
  51.     void SetWindowResizeMode(long);
  52.     long GetWindowBorderThickness();
  53.     void SetWindowBorderThickness(long);
  54.     long GetMeterType();
  55.     void SetMeterType(long);
  56.     long GetMeterNeedleStyle();
  57.     void SetMeterNeedleStyle(long);
  58.     BOOL GetMeterDynTextEnable();
  59.     void SetMeterDynTextEnable(BOOL);
  60.     BOOL GetMeterArcEnable();
  61.     void SetMeterArcEnable(BOOL);
  62.     double GetMeterCenterX();
  63.     void SetMeterCenterX(double);
  64.     double GetMeterCenterY();
  65.     void SetMeterCenterY(double);
  66.     long GetMeterDynTextPrecision();
  67.     void SetMeterDynTextPrecision(long);
  68.     double GetMeterDiameter();
  69.     void SetMeterDiameter(double);
  70.     long GetMeterNumChannels();
  71.     void SetMeterNumChannels(long);
  72.     long GetMeterStartArc();
  73.     void SetMeterStartArc(long);
  74.     long GetMeterStopArc();
  75.     void SetMeterStopArc(long);
  76.     long GetMeterLowAlarmColor();
  77.     void SetMeterLowAlarmColor(long);
  78.     long GetMeterHighAlarmColor();
  79.     void SetMeterHighAlarmColor(long);
  80.     BOOL GetMeterAlarmArcsEnable();
  81.     void SetMeterAlarmArcsEnable(BOOL);
  82.     double GetMeterAlarmArcThickness();
  83.     void SetMeterAlarmArcThickness(double);
  84.     double GetMeterHighAlarmStart();
  85.     void SetMeterHighAlarmStart(double);
  86.     double GetMeterHighAlarmStop();
  87.     void SetMeterHighAlarmStop(double);
  88.     double GetMeterLowAlarmStart();
  89.     void SetMeterLowAlarmStart(double);
  90.     double GetMeterLowAlarmStop();
  91.     void SetMeterLowAlarmStop(double);
  92.     long GetMeterTickPosition();
  93.     void SetMeterTickPosition(long);
  94.     long GetMeterTickLabelsPosition();
  95.     void SetMeterTickLabelsPosition(long);
  96.     long GetMeterTickLabelsColor();
  97.     void SetMeterTickLabelsColor(long);
  98.     long GetMeterTickLabelsSize();
  99.     void SetMeterTickLabelsSize(long);
  100.     long GetMeterTickLabelsFontStyle();
  101.     void SetMeterTickLabelsFontStyle(long);
  102.     CString GetMeterTickLabelsFont();
  103.     void SetMeterTickLabelsFont(LPCTSTR);
  104.     long GetMeterLineColor();
  105.     void SetMeterLineColor(long);
  106.     CString GetMeterUnitsString();
  107.     void SetMeterUnitsString(LPCTSTR);
  108.     BOOL GetMeterUnitsStringEnable();
  109.     void SetMeterUnitsStringEnable(BOOL);
  110.     long GetMeterLineThickness();
  111.     void SetMeterLineThickness(long);
  112.     long GetMeterMinorTicks();
  113.     void SetMeterMinorTicks(long);
  114.     double GetMeterScaleMin();
  115.     void SetMeterScaleMin(double);
  116.     double GetMeterScaleMax();
  117.     void SetMeterScaleMax(double);
  118.     long GetMeterTickLabelsPrecision();
  119.     void SetMeterTickLabelsPrecision(long);
  120.     double GetMeterTickRelLength();
  121.     void SetMeterTickRelLength(double);
  122.     double GetMeterTickStep();
  123.     void SetMeterTickStep(double);
  124.     long GetMeterNormalAlarmColor();
  125.     void SetMeterNormalAlarmColor(long);
  126.     double GetMeterValueArcThickness();
  127.     void SetMeterValueArcThickness(double);
  128.     double GetMeterScaleCenter();
  129.     void SetMeterScaleCenter(double);
  130.     long GetMeterBorderColor();
  131.     void SetMeterBorderColor(long);
  132.     long GetMeterBorderThickness();
  133.     void SetMeterBorderThickness(long);
  134.     long GetMeterBorderStyle();
  135.     void SetMeterBorderStyle(long);
  136.     double GetMeterInitialValue();
  137.     void SetMeterInitialValue(double);
  138.     BOOL GetEnableInternalTimer();
  139.     void SetEnableInternalTimer(BOOL);
  140.     double GetTimerFrequency();
  141.     void SetTimerFrequency(double);
  142.     double GetMeterBorderHeight();
  143.     void SetMeterBorderHeight(double);
  144.     double GetMeterBorderWidth();
  145.     void SetMeterBorderWidth(double);
  146.     BOOL GetSDataSimulationMode();
  147.     void SetSDataSimulationMode(BOOL);
  148.  
  149. // Operations
  150. public:
  151.     CString GetTitleString(long title);
  152.     void SetTitleString(long title, LPCTSTR lpszNewValue);
  153.     CString GetTitleFont(long title);
  154.     void SetTitleFont(long title, LPCTSTR lpszNewValue);
  155.     long GetTitleColor(long title);
  156.     void SetTitleColor(long title, long nNewValue);
  157.     long GetTitleFontStyle(long title);
  158.     void SetTitleFontStyle(long title, long nNewValue);
  159.     long GetTitleFontSize(long title);
  160.     void SetTitleFontSize(long title, long nNewValue);
  161.     long GetMeterChannelColor(long channel);
  162.     void SetMeterChannelColor(long channel, long nNewValue);
  163.     void UpdateDataValue(long nIndex, double rDataValue, BOOL bUpdate);
  164.     void UpdateMeter();
  165.     CString GetMeterChannelTagName(long nChannel);
  166.     void SetMeterChannelTagName(long nChannel, LPCTSTR lpszNewValue);
  167.     BOOL SerializeLoadFile(LPCTSTR sFilename);
  168.     BOOL SerializeSaveFile(LPCTSTR sFilename);
  169.     void UpdateGraph();
  170.     void UpdateDynData(double* rNewValues);
  171.     BOOL SavePageMeta(long mftype, LPCTSTR sFilename);
  172.     BOOL CopyToClipboard();
  173.     void AboutBox();
  174. };
  175.  
  176. //{{AFX_INSERT_LOCATION}}
  177. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  178.  
  179. #endif // !defined(AFX_RTMETERX_H__6182BB37_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  180.